package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 回答实体类
 */
@Setter
@Getter
public class Answer extends BaseDomain{
    //回答内容
    private String content;
    //回答者
    private User user;
    //问题id
    private Long questionId;
    //回答时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private Date replyTime;

}